
package org.darcy.entity.business;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.darcy.entity.work.WorkFlowObject;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Schema(description="BusinessClient: 客户")
@TableName(value = "business_client")
@Getter
@Setter
public class BusinessClient extends WorkFlowObject implements Serializable {

	private static final long serialVersionUID = 1L;

	@Schema(description = "客户名称")
	@TableField(value = "`name`")
	private String name;

	@Schema(description = "联系人，多个")
	@TableField(value = "`manager`")
	private String manager;

	@Schema(description = "地址，多个")
	@TableField(value = "`address`")
	private String address;

	@Schema(description = "开票资料，多个")
	@TableField(value = "`bank_info`")
	private String bankInfo;

	@Schema(description = "附件")
	@TableField(value = "`file`")
	private String file;

	@Schema(description = "备注")
	@TableField(value = "`remark`")
	private String remark;

	@Schema(description = "创建时间")
	@TableField(value = "`create_time`")
	private Date createTime;

	@Schema(description = "更新时间")
	@TableField(value = "`update_time`")
	private Date updateTime;

	@Schema(description = "删除标识0：删除；1：存在")
	@TableField(value = "`del_flag`")
	private Integer delFlag;

	// 扩展属性

	@Schema(description = "联系人列表")
	@TableField(exist = false)
	private List<Manager> managerList;

	@Schema(description = "地址列表")
	@TableField(exist = false)
	private List<Address> addressList;

	@Schema(description = "开票资料列表")
	@TableField(exist = false)
	private List<BankInfo> bankInfoList;

	@Schema(description = "附件列表")
	@TableField(exist = false)
	private List<String> fileList;

}
